//
//  Fraction.h
//  02-ClassAndObject
//
//  Created by dllo on 16/7/5.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Fraction : NSObject


@property (nonatomic, assign)NSInteger numerator;
@property (nonatomic, assign)NSInteger denorminator;

- (instancetype)initWithNume:(NSInteger)nume demo:(NSInteger)deno;
+ (instancetype)fractionWithNum:(NSInteger)nume demo:(NSInteger)deno;

//比较大小
- (void)compareFraction:(Fraction *)frac;

//约分
- (void)reduce;
// 加
- (Fraction *)addFraction:(Fraction *)frac;
//减
- (Fraction *)minusFraction:(Fraction *)frac;
// 乘
- (Fraction *)mulFraction:(Fraction *)frac;
//  除
- (Fraction *)divisionFraction:(Fraction *)frac;







@end
